package com.joysuch.wwyt.api.dataaccess.bean;

import cn.zlg.common.util.CollectionUtils;
import com.google.common.collect.Lists;
import com.joysuch.wwyt.monitoringcenter.bean.PointBean;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrientationCheckSnInAreaReturnBean implements Serializable {
    private String sn;
    private Boolean inRail;
    private List<OrientationCheckSnInAreaReturnItemBean> location;

    public OrientationCheckSnInAreaReturnBean(LinkedHashMap record) {
//        this.sn = (String) record.get("sn");
//        this.inRail = (Boolean) record.get("inRail");
//        List<LinkedHashMap> list = (List<LinkedHashMap>) record.get("location");
//        List<PointBean> location = Lists.newArrayList();
//        if (!CollectionUtils.isEmpty(list)) {
//            for (LinkedHashMap map : list) {
//                Long time = (Long) map.get("time");
//                location.add(new
//            }
//        }
//        this.location = location;
    }
}
